// @ts-ignore
import Cookies from 'js-cookie';// 好处在于切换标签也能处于登录状态

const TokenKey = 'My-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token: string) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}